package org.indt.scrum.model;
// default package
// Generated Jun 12, 2009 8:05:37 AM by Hibernate Tools 3.2.2.GA

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * TbProductbacklog generated by hbm2java
 */
@Entity
@Table(name = "tb_productbacklog", catalog = "scrumtool")
public class Productbacklog implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2203042230114151689L;
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "STORY_ID", unique = true, nullable = false)
	private Integer storyId;
	
	@Column(name = "PROJECT_ID", nullable = false)
	private int projectId;
	
	@Column(name = "DESCRIPTION", length = 250)
	private String description;
	
	@Column(name = "CS_STATUS", length = 1)
	private Character csStatus;
	
	@Column(name = "ESTIMATEDSIZE")
	private Integer estimatedsize;
	
	@Column(name = "REMARK", length = 150)
	private String remark;
	
	@Column(name = "BENEFIT")
	private Integer benefit;
	
	@Column(name = "PENALTY")
	private Integer penalty;
	
	@Column(name = "ROI")
	private Integer roi;
	
	@Column(name = "SEQUENCE")
	private Integer sequence;
	
	@Column(name = "SPRINTCREATED")
	private Integer sprintcreated;
	
	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "tbProductbacklog")
	private Set<SelectedBacklog> selectedBacklogs = new HashSet<SelectedBacklog> (0);

	public Productbacklog() {
	}

	public Productbacklog(int projectId) {
		this.projectId = projectId;
	}

	public Productbacklog(int projectId, String description,
			Character csStatus, Integer estimatedsize, String remark,
			Integer benefit, Integer penalty, Integer roi, Integer sequence,
			Integer sprintcreated, Set<SelectedBacklog> selectedBacklogs) {
		this.projectId = projectId;
		this.description = description;
		this.csStatus = csStatus;
		this.estimatedsize = estimatedsize;
		this.remark = remark;
		this.benefit = benefit;
		this.penalty = penalty;
		this.roi = roi;
		this.sequence = sequence;
		this.sprintcreated = sprintcreated;
		this.selectedBacklogs = selectedBacklogs;
	}


	public Integer getStoryId() {
		return this.storyId;
	}

	public void setStoryId(Integer storyId) {
		this.storyId = storyId;
	}

	
	public int getProjectId() {
		return this.projectId;
	}

	public void setProjectId(int projectId) {
		this.projectId = projectId;
	}

	
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	
	public Character getCsStatus() {
		return this.csStatus;
	}

	public void setCsStatus(Character csStatus) {
		this.csStatus = csStatus;
	}

	
	public Integer getEstimatedsize() {
		return this.estimatedsize;
	}

	public void setEstimatedsize(Integer estimatedsize) {
		this.estimatedsize = estimatedsize;
	}

	
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	
	public Integer getBenefit() {
		return this.benefit;
	}

	public void setBenefit(Integer benefit) {
		this.benefit = benefit;
	}

	
	public Integer getPenalty() {
		return this.penalty;
	}

	public void setPenalty(Integer penalty) {
		this.penalty = penalty;
	}

	
	public Integer getRoi() {
		return this.roi;
	}

	public void setRoi(Integer roi) {
		this.roi = roi;
	}

	
	public Integer getSequence() {
		return this.sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	
	public Integer getSprintcreated() {
		return this.sprintcreated;
	}

	public void setSprintcreated(Integer sprintcreated) {
		this.sprintcreated = sprintcreated;
	}

	
	public Set<SelectedBacklog> getSelectedBacklogs() {
		return this.selectedBacklogs;
	}

	public void setSelectedBacklogs(Set<SelectedBacklog> selectedBacklogs) {
		this.selectedBacklogs = selectedBacklogs;
	}

}
